//
//  Int+AP.swift
//  APExtensions
//
//  Created by jianbo.pei on 2023/8/18.
//

import Foundation

extension Int {
    public enum Kind {
        case negative
        case zero
        case positive
    }
    public var kind: Kind {
        switch self {
        case 0:
            return .zero
        case let x where x > 0 :
            return .positive
        default:
            return .negative
        }
    }
}
